﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public static class DictionaryExtension {


    /**
     * 
     *字典工具类 
     */
    public static VALUE TryGet<KEY, VALUE>(this Dictionary<KEY, VALUE> dict, KEY key) {
        VALUE value;
        dict.TryGetValue(key, out value);
        return value;
    }
}
